package com.example.todolist.repository;

import com.example.todolist.model.entity.TodoItem;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.List;

public interface TodoRepository extends JpaRepository<TodoItem, Long> {
    List<TodoItem> findByCompleted(boolean completed);
    List<TodoItem> findByOrderByCreatedAtDesc();
}